package com.mini.client;

import com.mini.vo.BusinessResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author zhangxiaobin
 * @title: MiniQweibServer
 * @date 2021/2/2615:50
 */
@FeignClient(name = "mini-qweib-server")
public interface MiniQweibServer {

    @PostMapping(value = "/teacher/relation")
    BusinessResult teacherRelation(@RequestHeader("sig") String sig, @RequestBody TeacherRelationVO teacherRelationVO);

    @PostMapping(value = "/teacher/unRelation")
    BusinessResult unRelationTeacher(@RequestHeader("sig") String sig, @RequestBody TeacherRelationVO teacherRelationVO);

}
